<include file="Public/common" />
<block>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        .col-xs-3{margin-top:5px;}
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;产品管理  >  团号管理 > 团号详情订单</h1></div>
    <div class="tab-content">

        <div class="col-xs-12"  style="margin-top:10px;">
            <button class="btn btn-primary btn-xs pull-right" type="button" id="dropdownMenu1" data-toggle="dropdown">
                筛选
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1" style="padding:10px;">
                <li><input type="checkbox" class="filtrate" checked value="1" id="filtrate_1"> <label for="filtrate_1">ID</label> </li>
                <li><input type="checkbox" class="filtrate"checked value="2" id="filtrate_2"><label for="filtrate_2">订单号</label></li>
                <li><input type="checkbox" class="filtrate"checked value="3" id="filtrate_3"><label for="filtrate_3">游客姓名</label></li>
                <li><input type="checkbox" class="filtrate"checked value="4" id="filtrate_4"><label for="filtrate_4">联系方式</label></li>
                <li><input type="checkbox" class="filtrate"checked value="5" id="filtrate_5"><label for="filtrate_5">线路名称</label></li>
                <li><input type="checkbox" class="filtrate"checked value="6" id="filtrate_6"><label for="filtrate_6">线路编号</label></li>
                <li><input type="checkbox" class="filtrate"checked value="7" id="filtrate_7"><label for="filtrate_7">出发地</label></li>
                <li><input type="checkbox" class="filtrate"checked value="8" id="filtrate_8"><label for="filtrate_8">行程天数</label></li>
                <li><input type="checkbox" class="filtrate"checked value="9" id="filtrate_9"><label for="filtrate_9">人数</label></li>
                <!--<li><input type="checkbox" class="filtrate"checked value="10" id="filtrate_10"><label for="filtrate_10">结算总金额</label></li>-->
                <!--<li><input type="checkbox" class="filtrate"checked value="11" id="filtrate_11"><label for="filtrate_11">结算总金额</label></li>-->
                <li><input type="checkbox" class="filtrate"checked value="12" id="filtrate_12"><label for="filtrate_12">状态</label></li>
                <li><input type="checkbox" class="filtrate"checked value="13" id="filtrate_13"><label for="filtrate_13">商户信息</label></li>
            </ul>
            <if condition="checkAuth('Dealer/Product/exportExcelGroupDetail')">
                 <a class="btn btn-primary btn-xs pull-right" href="{:U('exportExcelGroupDetail',array('id'=>I('id')))}" style="margin-right: 10px">导出</a>
            </if>
        </div>
    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
            <tr>
                <th class="filtrate_1" >ID <!--<input type="checkbox" class="checkAll">--></th>
                <th class="filtrate_2" >订单号</th>
                <th class="filtrate_3" >游客姓名</th>
                <th class="filtrate_4" >联系方式</th>
                <th class="filtrate_5" >线路名称</th>
                <th class="filtrate_6" >线路编号</th>
                <th class="filtrate_7" >出发地</th>
                <th class="filtrate_8">行程天数</th>
                <th class="filtrate_9" >人数</th>
                <!--<th class="filtrate_10" >给运营商结算单价</th>-->
               <!-- <th class="filtrate_11" >结算总金额</th>-->
                <th class="filtrate_12" >状态</th>
                <th class="filtrate_13"  >商户信息</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="vo">
                <tr >
                    <td class="filtrate_1" >{$vo.order_id} <!--<input type="checkbox" class="chk">--></td>
                    <td class="filtrate_2">{$vo.order_num}</td>
                    <td class="filtrate_3">{$vo.tourists_name}</td>
                    <td class="filtrate_4">{$vo.tourists_phone}</td>
                    <td class="filtrate_5">{$vo.line_name}</td>
                    <td class="filtrate_6">{$vo.line_sn}</td>
                    <td class="filtrate_7">{$group.startAddr}</td>
                    <td class="filtrate_8">{$vo.travel_days}</td>
                   <!-- <td class="filtrate_9">其他费用</td>-->
                    <td class="filtrate_10">成:{$vo.adult_num};儿:{$vo.child_num}<!--,老:{$vo.oldMan_num}--></td>
                   <!-- <td class="filtrate_11">{$vo.operator_cost}</td>-->
                    <td class="filtrate_12">
                        <switch name="vo.order_status">
                            <case value="-1">未支付</case>
                            <case value="1">待审核</case>
                            <case value="-2">审核不通过</case>
                            <case value="2">审核中</case>
                            <case value="3">已审核</case>
                            <case value="-3">退款审核中</case>
                            <case value="-4">拒绝退款</case>
                            <case value="-5">订单已退款</case>
                            <case value="-6">订单取消</case>
                        </switch>
                    </td>
                    <td class="filtrate_13">
                      {$group.shop_name}
                    </td>
                </tr>
            </volist>
        <tr>
            <td colspan="15">
                <!--分页样式-->
                <ul class="pagination">
                    {$show}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>
    </div>
</block>
<block name="js">
<script src=""></script>
<script src="__STATIC__/layui/layui.all.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script>
/**
 * 打开订单详情页面
 * @param  {[int]}    orderId     [订单id]
 */

//筛选显示
$('body').on('change','.filtrate',function () {
   var id=$(this).val();
   if($(this).is(':checked')){
        $('.filtrate_'+id).show();
   }else{
       $('.filtrate_'+id).hide();
   }
});


layui.use('laydate', function() {
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
        elem: '#start_time'
    });
    laydate.render({
        elem: '#end_time'
    });
})

/**
 *订单详情
 * @param orderId
 */

function openDetail(orderId){
    layer.open({
        type: 2,
        offset:20,
        area: ['90%','90%'],
        title: '订单详情',
        content: '{:U("Orders/detail")}',
    })
}
</script>
</block>
